﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
/// <summary>
/// 相机管理器
/// </summary>
public class CameraController : SingletonProvider<CameraController>
{
    Transform cameraTf;
    public CameraController()
    {
        cameraTf = GameObject.Find("Main Camera").transform;
    }
    /// <summary>
    /// 相机移动
    /// </summary>
    /// <param name="playerPos"></param>
    /// <param name="time"></param>
    public void CameraMove(Vector3 playerPos, float time)
    {
        cameraTf.DOLookAt(playerPos - cameraTf.position, time);
    }
}
